@import '../../../../common/styles/settings/_vars.scss';

.region {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	background-color: $component-background;
}

// @media (max-width: $screen-xs-max) {
//
// }
// @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
//
// }
// @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
//
// }
// @media (min-width: $screen-lg-min) {
//
// }

// $screen-xs-max: 576px;
// $screen-sm-min: 768px;
// $screen-sm-max: 992px;
// $screen-md-min: 1200px;
// $screen-md-max: 1200px;
// $screen-lg-min: 1200px;

.dashboard {
	width: 100%;
	padding: 16px;

	.row {
		display: flex;
		list-style: none;
		margin-top: 0;
		margin-bottom: 0;
		padding-left: 0;

		margin-left: -16px;
		font-size: 0;

		.col {
			// display: inline-block;
			// width: 12.285%;
			flex: 1;
			font-size: 16px;
			padding-left: 16px;

			&:nth-child(1) {
				.section {
					background-color: #1b84ea;
				}
			}
			&:nth-child(2) {
				.section {
					background-color: #f5a72b;
				}
			}
			&:nth-child(3) {
				.section {
					background-color: #22cdab;
				}
			}
			&:nth-child(4) {
				.section {
					background-color: #28ab75;
				}
			}
			&:nth-child(5) {
				.section {
					background-color: #00b2f2;
				}
			}
			&:nth-child(6) {
				.section {
					background-color: #66ce33;
				}
			}
			&:nth-child(7) {
				.section {
					background-color: #f5a72b;
				}
			}
			&:nth-child(8) {
				// width: 14%;

				.section {
					background-color: #1b84ea;
				}
			}

			.section {
				padding: 16px;
				border-radius: $border-radius-base;

				.text {
					margin-top: 0;
					margin-bottom: 0;

					color: #fff;
					text-align: center;
					white-space: nowrap;

					&:first-child {
						margin-bottom: 8px;
					}
				}

				.label {
					font-size: 16px;
					font-weight: bold;
					text-shadow: 1px 2px 3px rgba(#000, 0.1);
				}

				.subLabel {
					font-size: 14px;
				}
				.value {
					font-size: 20px;
					font-weight: bold;
					text-shadow: 1px 2px 3px rgba(#000, 0.5);
				}
				.unit {
					font-size: 16px;
				}
			}
		}
	}
}

.card {
	padding: 8px;
	border-radius: $border-radius-sm;
	background-color: #fff;
	box-shadow: 1px 2px 3px 2px rgba(#000, 0.1);
	overflow: hidden;
}

.main {
	// display: table;
	width: 100%;
	// height: 100%;
	// min-height: 100%;
	padding: 16px;
	// font-size: 0;
	background-color: $component-background;
	// overflow-y: auto;


	.article .table .title,
	.aside .table .title {
		margin-top: 8px;
		margin-bottom: 8px;
		font-size: 16px;
		text-align: center;
		color: $primary-color;
		font-family: 'microsoft Yahei';
	}

	.article,
	.aside {
		float: left;
		// display: table-cell;
		// display: inline-block;
		// vertical-align: top;
		// height: 100%;
		// min-height: 100%;
	}

	.article {
		width: 70%;
		// flex-basis: 70%;

		// .barWraperCenter,
		// .barWraperCenter .item,
		.barWraperCenter .barEleCenter {
			height: 193px;
		}

		.barWraperCenter {
			margin-top: 16px;

			.row {
				list-style: none;
				margin-top: 0;
				margin-bottom: 0;
				margin-left: -8px;
				padding-left: 0;

				display: flex;
				flex-wrap: nowrap;
				background-color: #fff;
				.col {
					flex-basis: 33.333%;
					margin-left: 8px;

					.barEleCenter {
						padding: 8px;
						border: 1px solid #eee;
						border-radius: $border-radius-base;
						background-color: #f2fafd;
					}
				}
			}
		}

		// 巡检统计分析
		.pieWraperEnd {
			width: 100%;

			.row {
				list-style: none;
				margin-top: 0;
				margin-bottom: 0;
				// margin-left: -8px;
				padding-left: 0;

				display: flex;
				flex-wrap: nowrap;
				width: 100%;

				.col {
					flex-basis: 50%;

					& + .col {
						padding-left: 8px;
					}

					.pieEleCenter {
						height: 400px;
						background-color: #fff;
					}
				}
			}
		}

		.table {
			margin-bottom: 8px;
		}

		.lineWraperStart,
		.barWraperEnd {
			padding: 16px;
			background-color: #fff;

			.lineEleStart,
			.barEleEnd {
				height: 460px;
			}
		}

		.lineWraperStart {
			margin-bottom: 8px;

			.lineEleStart {
				height: 325px !important;
			}
		}
	}

	.aside {
		width: calc(30% - 16px);
		// flex-basis: 30%;
		margin-left: 16px;

		.table {
			margin-bottom: 8px;

			.pieEleWraper {
				padding-top: 8px;
				padding-bottom: 8px;
			}
			.pieEle {
				width: 100%;
				height: 300px;
			}

			// 巡检统计分析
			.barWraperAside {
				padding: 8px;

				.barEle {
					width: 100%;
					height: 330px;
				}
			}
			
			.handleBtn {
				color: $primary-color;
				text-decoration: none;
			}
		}

		.tab {
			min-height: 480px;
			padding: 8px;
			background-color: #fff;

			.tabbar {
				width: 100%;
				font-size: 0;
				border-radius: $border-radius-sm;
				overflow: hidden;

				.item {
					display: inline-block;
					width: 33.333%;
					padding: 8px 16px;
					border: 1px solid #eee;
					font-size: 14px;
					text-align: center;
					color: #333;
					cursor: pointer;

					&.active {
						border: 1px solid $primary-color;
						background-color: $primary-color;
						color: #fff;
						font-weight: bold;
					}
				}
			}

			.tabContent {
				padding-top: 8px;
			}
		}
	}
}
